package com.pingan.cn.lish.dao;

import com.pingan.cn.lish.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

@Repository
public interface UserDao extends JpaRepository<User,String> {
//    @Query(value = "select * from myuser where username = ?1 and password = ?2 ",nativeQuery = true)
    User findByUsernameAndPassword(String username,String password);
}
